package com.base.mapper.voipmapper;

import com.base.po.voip.BusinessNature;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface BusinessNatureMapper {
    int delete(@Param("id") String id);

    int insert(@Param("id")String id,@Param("UserName")String UserName,@Param("parentid")String parentid,@Param("businessId")String businessId,@Param("status")String status,@Param("AddressProvince")String AddressProvince,@Param("AddressCity")String AddressCity,@Param("AddressArea")String AddressArea,@Param("tuijianren")String tuijianren);

    int insertDynamic(@Param("businessNature") BusinessNature businessNature);

    int updateDynamic(@Param("businessNature") BusinessNature businessNature);

    int update(@Param("businessNature") BusinessNature businessNature);

    BusinessNature selectById(@Param("id") String id);

    /**
     * 查询下一级
     * @param id for 省
     * @return
     */
    List<BusinessNature> findlastResult(@Param("id") String id);

    /**
     * findAllByStatus
     * @param status for 状态
     * @return
     */
    List<BusinessNature> findAllByStatus( @Param("status") String status);
    /**
     *  @Date: 2019/10/15 15:51
     *  @Description:
     *  根据信息模糊查询对应状态下的localName值
     */ 
    List<BusinessNature> getNatureLike(@Param("UserName") String localName,@Param("status") String status);
}